/**
 * @author : cww
 * @date : 2021/1/25 21:37
 */
public abstract class Colleague {
    protected Mediator mediator;
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setMediator(Mediator mediator){
        this.mediator = mediator;
    }
    public abstract void receive(String message);
    public abstract void send(String message);
}
